<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<ui:composition template="../templates/content.xhtml"
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.prime.com.tr/ui"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets">

	<link rel="StyleSheet" type="text/css"
		href="#{facesContext.externalContext.requestContextPath}/css/estilos.css"
		media="screen" />

	<div class="content">
		<ui:define name="content">

			<h:head>
				<title>Lista de Clietes</title>

			</h:head>
			<h:form prependId="false">
				<p:dataTable var="cad" value="#{cadastroBean.lista}">
					<p:column id="modelHeader">
						<f:facet name="header">  
                    Id
            </f:facet>
						<h:outputText value="#{cad.id}" />
					</p:column>

					<p:column>
						<f:facet name="header">  
                    Nome  
            </f:facet>
						<h:outputText value="#{cad.nome}" />
					</p:column>

					<p:column>
						<f:facet name="header">  
                    Sobrenome  
            </f:facet>
						<h:outputText value="#{cad.sobrenome}" />
					</p:column>

					<p:column>
						<f:facet name="header">  
                    Rua
            </f:facet>
						<h:outputText value="#{cad.rua}" />
					</p:column>

					<p:column>
						<f:facet name="header">  
                    Número
            </f:facet>
						<h:outputText value="#{cad.numero}" />
					</p:column>

					<p:column>
						<f:facet name="header">  
                    Telefone
            </f:facet>
						<h:outputText value="#{cad.telResidencial}" />
					</p:column>

					<p:column>
						<f:facet name="header">  
                    Celular
            </f:facet>
						<h:outputText value="#{cad.celular}" />
					</p:column>
				</p:dataTable>
			</h:form>
		</ui:define>
	</div>
</ui:composition>